
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>留言板-学并思</title>
    <link href="./template/css/bootstrap.min.css" rel="stylesheet">
    <link href="./template/css/bootstrap-theme.min.css" rel="stylesheet">
    
  </head>

  <body>

    <!-- Fixed navbar -->
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">留言板</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">网盘</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
        </div><!--/.nav-collapse -->
      </div>  
    </nav>       

    <div class="container theme-showcase" role="main">
    <style type="text/css">
        .upload{
          width: 150px;
          height: 45px;
          background: #fff url(./template/images/upload.png) 0 0 no-repeat;
          display: inline-block;
          float: left;
        }
        form{
          position: relative;
        }
        #upload{
          position: absolute;
          top: 0px;
          left: 0px;
          width: 150px;
          height: 45px;
          opacity: 0;
        }
        button{
          float: left;
          margin-left: 15px;
        }
    </style>
    	
      <div class="page-header">
        <h1></h1>
      </div>
      <div class="row">
          <form action="./add.php" method="post" enctype="multipart/form-data">
            <div class="upload"></div>
            <input style="display: inline-block;width: 150px;" type="file" class="btn btn-primary  active" id="upload" multiple="multiple"  name="file">
            <button type="submit" class="btn btn-primary btn-lg  active">上传</button>
          </form>
      </div>
      <div class="row">
        <table class="table table-striped">
          <thead>
              <tr>
                  <th>缩略图</th>
                  <th>文件名</th>
                  <th>大小</th>
                  <th>时间</th>
                  <th width="150">操作</th>
              </tr>
          </thead>
          <tbody>
              <?php foreach ($fileList as $k => $v): ?>
              <tr>
                  <td><img height="25px" src="<?php echo Fimg($v) ?>"></td>
                  <td><?php echo basename($v); ?></td>
                  <td><?php echo Fsize(filesize($v)); ?></td>
                  <td><?php echo Ftime(filectime($v)); ?></td>
                  <td>
                    <a href="./del.php?url=<?php echo $v; ?>" type="button" class="btn btn-danger btn-xs">删除</a>
                    <a href="./down.php?url=<?php echo $v; ?>" type="button" class="btn btn-success btn-xs">下载</a>
                  </td>
              </tr>
              <?php endforeach ?>
          </tbody>
      </table>
      </div>
    </div>
  </body>
</html>
